package com.bw.services

import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bw.common.mvvm.BaseViewFragment
import com.bw.services.databinding.FragmentServicesBinding
import com.bw.services.device.model.DeviceEntity
import com.therouter.TheRouter

class ServicesFragment : BaseViewFragment<FragmentServicesBinding>() {

    override fun initData() {

    }
    override fun initView() {
        binding.ivCarManage.setOnClickListener {
            TheRouter.build("app/ServicesActivity").navigation()
        }
//        binding.ivParkingManage.setOnClickListener {
//            TheRouter.build("app/CarParkingActivity").navigation()
//        }
        //即时通讯
        binding.itemIm.setOnClickListener {
            TheRouter.build("app/IMmessageActivity").navigation()
        }
        binding.ivParkingManage.setOnClickListener {
            TheRouter.build("app/ParkingActivity").navigation()
        }
        //设备管理
        binding.itemDeviceManage.setOnClickListener {
            TheRouter.build("app/DeviceActivity").navigation()
        }
        binding.itemVisitorManage.setOnClickListener {
            TheRouter.build("/services/visit/VisitActivity").navigation()
        }
        binding.itemHouseInfo.setOnClickListener {
            TheRouter.build("/services/properties/PropertiesActivity").navigation()
        }
//        throw RuntimeException("这是测试 Bugly 崩溃上报的异常！")
        binding.ivNoticeManage.setOnClickListener {
            TheRouter.build("app/NewsActivity").navigation()
        }
    }
}